﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;

namespace PlexBB.Controls
{
    public abstract class Overall : ForumControl
    {
        #region Controls

        protected Control cContent;

        #endregion

        internal Control ContentControl { get; set; }

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            cContent.Controls.Add(ContentControl);

            OverallHead overallHead = PlexBB.CreateForumControl<OverallHead>();
            Page.Header.Controls.Add(overallHead);
        }
    }

    //public class Overall<T> : Control where T : ForumControl
    //{
    //    override o
    //    public Control CreateControl(PlexBB plexBB)
    //    {
    //        Overall overall = plexBB.CreateForumControl<Overall>();
    //        overall.ContentControl = plexBB.CreateForumControl<T>();
    //        return overall;
    //    }
    //}
}
